<?php 
$sql="select * from agenda where nov_pub=1 and nov_fec_des <='".date("Y-m-d")."' and nov_fec_des >='".date("d-m-Y")."' order by nov_fec desc limit 0,3";
$res=cons_sql_up($sql);
$i=1;
?>
<div class="nue"><h5>Eventos</h5></div>
<?php while($reg=mysql_fetch_array($res)):?>
<div class="evento">
<h6><?php echo utf8_encode($reg['nov_tit'])?></h6>
<h4><?php echo utf8_encode($reg['nov_det'])?></h4>
<span class="fecha"><?php echo format_fec($reg['nov_fec_des'],".")?></span>
</div>
<?php 
endwhile ?>
